import request from "@/utils/request";
export function getWorkOrderList(query) {
    return request({
        url: "/tk/tourist-work/page",
        method: "get",
        params: query,
    });
}

export function addWorkOrder(query) {
    return request({
        url: "/tk/tourist-work/create",
        method: "post",
        data: query,
    });
}

export function editWorkOrder(query) {
    return request({
        url: "/tk/tourist-work/update",
        method: "put",
        data: query,
    });
}

export function patchWorkOrderStatus(query) {
    return request({
        url: "/tk/tourist-work/batch-update",
        method: "put",
        data: query,
    });
}

export function pathDeleteWorkOrder(query) {
    return request({
        url: "/tk/tourist-work/batch-delete",
        method: "delete",
        params: query,
    });
}

export function deleteWorkOrder(query) {
    return request({
        url: "/tk/tourist-work/delete",
        method: "delete",
        params: query,
    });
}

export function exportWorkOrder(query) {
    return request({
        url: "/tk/tourist-work/export-excel",
        method: "get",
        params: query,
        responseType: "blob",
    });
}
